home *** CD-ROM | disk | FTP | other *** search
- Path: news.bridge.net!news
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: overloading []
- Date: 17 Jan 1996 07:54:17 GMT
- Organization: self-employed
- Message-ID: <4di9v9$8k6@news.bridge.net>
- References: <4dgjbl$6i3@news1.goodnet.com> <4dh86s$bfi@locutus.rchland.ibm.com>
- NNTP-Posting-Host: ppp-mia1-60.bridge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
- >> No, you could do:
-
- >> foo& f( *new foo );
- >> later on:
-
- >> delete &f;
-
-
- Phil, I believe the C++ standards committee have decided to play safe by
- declaring this kind of code as "ill-formed". In other words, a 'perfect'
- C++ compiler need not behave as you want here.
-
- David
-
-
-